package com.purchase.ml.bean.req.dealer;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.purchase.ml.bean.base.PageDto;
import com.purchase.ml.entity.prod.SysProduct;
import com.purchase.ml.entity.prod.SysProductSku;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author :zxm
 * @date :2021/2/26 17:38
 * @description :some description
 **/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "主经销商修改商品model")
public class DealerProdEditDto extends SysProduct implements Serializable {   //todo：main: 继承对象只能是PageDto或者不继承

        @ApiModelProperty(value = "产品id",required = true)
        @NotNull(message = "ID tidak boleh kosong")
        private Long id;

        @ApiModelProperty(value = "产品状态",required = true)
        @NotNull(message = "Status produk tidak boleh kosong")
        private Integer state;

        @ApiModelProperty(value = "最小起量")
        private SysProductSku productSku = new SysProductSku();

        // 用以修改主经销商产品中间表
        private Long productId;
}
